package com.cs.dao;

import com.cs.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDao {
    int deleteByPrimaryKey(Integer userId);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
<<<<<<< HEAD
    User selectLogin(@Param("username") String username, @Param("password")String password);
    int checkUsername(String username);
=======
>>>>>>> 10ae709d8fbebc01ec8cc0ec6810d4c29096e11b

    User selectLogin(@Param("rname") String username, @Param("password") String password);

    int checkUsername(String username);
}